#include <iostream>
#include <sstream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
using std::istringstream;
using std::string;

void inputInt(int & value)
{
    cout << "请输入整型数据" << endl;
    string word;
    while(cin >> word,!cin.eof())
    {
        auto it = word.begin();
        for( ;it != word.end(); ++it)
        {
            if(!isdigit(*it))
            {
                cout << "请输入整型数据" << endl;
                break;
            }
        }
        if(it == word.end())
        {
            istringstream iss(word);
            iss >> value;
            break;
        }
    }
}


void test0(){
    int num = 1;
    inputInt(num);
    cout << num << endl;
}

void test1()
{
    string str;
    cin >> str;
    cout << str << endl;

    string str2;
    cin >> str2;
    cout << str2 << endl;
}

int main(void){
    test1();
    return 0;
}
